6316cd
@@ -32,12 +32,12 @@
 import java.util.Set;
 
 import jline.ArgumentCompletor;
-import jline.ArgumentCompletor.AbstractArgumentDelimiter;
-import jline.ArgumentCompletor.ArgumentDelimiter;
 import jline.Completor;
 import jline.ConsoleReader;
 import jline.History;
 import jline.SimpleCompletor;
+import jline.ArgumentCompletor.AbstractArgumentDelimiter;
+import jline.ArgumentCompletor.ArgumentDelimiter;
 
 import org.apache.commons.lang.StringUtils;
 import org.apache.commons.logging.Log;
@@ -398,18 +398,6 @@
public void handle(Signal signal) {
       int lastRet = 0, ret = 0;
 
       String command = "";
-      String cmdLine = "";
-      for (String cmd : line.split("\n")) {
-        String[] cmdArr = cmd.split("-- ");
-        if (cmdArr.length > 2) {
-          console.printInfo("Cannot have nested comments");
-          return -2;
-        }
-
-        cmdLine += cmdArr[0] + "\n";
-      }
-      
-      line = cmdLine;
       for (String oneCmd : line.split(";")) {
 
         if (StringUtils.endsWith(oneCmd, "\\")) {
@@ -763,9 +751,6 @@
public static int run(String[] args) throws Exception {
       if (!prefix.equals("")) {
         prefix += '\n';
       }
-      if (prefix.equals("") && line.startsWith("--")) {
-        continue;
-      }
       if (line.trim().endsWith(";") && !line.trim().endsWith("\\;")) {
         line = prefix + line;
         ret = cli.processLine(line, true);
